﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
	<head>
		<title>SLExtensions Converters – AlternateBackgroundConverter</title>
	</head>
	<body>
	    <h1>AlternateBackgroundConverter</h1>
	    <p>Retourne un brush différent chaque fois que le converter est appelé.
Ce converter nécessite que la propriété ConverterParameter soit spécifiée lors du binding.
Le ConverterParameter peut être soit une string contenant une liste de couleurs séparées par des espaces soit une référence à un objet AlternateBackgroundConverterParameter.
<ul>
<li>Lorsqu’une string est passée, les couleurs peuvent être spécifiées au format argb sous forme hexadécimale (#RRGGBB  ou  #AARRGGBB) ou être un des nom de propriété existant dans la classe Colors (White, Red, Yellow, etc…)</li>
<li>Lorsqu’un AlternateBackgroundConverterParameter est passé, vous pouvez spécifier n’importe quel type de brush, SolidBrush, GradientBrush, VideoBrush, ImageBrush</li>
</ul>
</p>
<div style="font-family: Consolas; font-size: 8pt; color: #e0e0e0; background: black;">
<p style="margin: 0px;"><span style="color: #80ffff;">&lt;</span><span style="color: #0080ff;">UserControl</span><span style="color: #ffff80;"> x</span><span style="color: #80ffff;">:</span><span style="color: #ffff80;">Class</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"SLExtensions.Showcase.PageAlternateConverter"</span></p>
<p style="margin: 0px;">&nbsp;&nbsp; <span style="color: #ffff80;"> xmlns</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"http://schemas.microsoft.com/winfx/2006/xaml/presentation"</span> </p>
<p style="margin: 0px;">&nbsp;&nbsp; <span style="color: #ffff80;"> xmlns</span><span style="color: #80ffff;">:</span><span style="color: #ffff80;">x</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"http://schemas.microsoft.com/winfx/2006/xaml"</span> </p>
<p style="margin: 0px;">&nbsp;&nbsp; <span style="color: #ffff80;"> xmlns</span><span style="color: #80ffff;">:</span><span style="color: #ffff80;">sled</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"clr-namespace:SLExtensions.Data;assembly=SLExtensions"</span></p>
<p style="margin: 0px;">&nbsp;&nbsp; <span style="color: #ffff80;"> xmlns</span><span style="color: #80ffff;">:</span><span style="color: #ffff80;">scControllers</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"clr-namespace:SLExtensions.Showcase.Controllers;assembly=SLExtensions.Showcase"</span></p>
<p style="margin: 0px;">&nbsp; <span style="color: #80ffff;"> &gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;</span><span style="color: #0080ff;">UserControl.Resources</span><span style="color: #80ffff;">&gt;</span></p>
<p style="margin: 0px;">&nbsp;</p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;</span><span style="color: #0080ff;">sled</span><span style="color: #80ffff;">:</span><span style="color: #0080ff;">AlternateBrushConverter</span><span style="color: #ffff80;"> x</span><span style="color: #80ffff;">:</span><span style="color: #ffff80;">Key</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"alternateConverter"</span><span style="color: #80ffff;"> /&gt;</span></p>
<p style="margin: 0px;">&nbsp;</p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;</span><span style="color: #0080ff;">sled</span><span style="color: #80ffff;">:</span><span style="color: #0080ff;">AlternateBrushConverterParameter</span><span style="color: #ffff80;"> x</span><span style="color: #80ffff;">:</span><span style="color: #ffff80;">Key</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"alternateParameter"</span><span style="color: #80ffff;"> &gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;</span><span style="color: #0080ff;">sled</span><span style="color: #80ffff;">:</span><span style="color: #0080ff;">AlternateBrushConverterParameter.Brushes</span><span style="color: #80ffff;">&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;</span><span style="color: #0080ff;">SolidColorBrush</span><span style="color: #ffff80;"> Color</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"White"</span><span style="color: #80ffff;">/&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;</span><span style="color: #0080ff;">LinearGradientBrush</span><span style="color: #ffff80;"> StartPoint</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"0.45666,0.185989"</span><span style="color: #ffff80;"> EndPoint</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"1.22116,0.185989"</span><span style="color: #80ffff;">&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;</span><span style="color: #0080ff;">LinearGradientBrush.RelativeTransform</span><span style="color: #80ffff;">&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;</span><span style="color: #0080ff;">TransformGroup</span><span style="color: #80ffff;">&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;</span><span style="color: #0080ff;">SkewTransform</span><span style="color: #ffff80;"> CenterX</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"0.45666"</span><span style="color: #ffff80;"> CenterY</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"0.185989"</span><span style="color: #ffff80;"> AngleX</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"0.135522"</span><span style="color: #ffff80;"> AngleY</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"0"</span><span style="color: #80ffff;">/&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;</span><span style="color: #0080ff;">RotateTransform</span><span style="color: #ffff80;"> CenterX</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"0.45666"</span><span style="color: #ffff80;"> CenterY</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"0.185989"</span><span style="color: #ffff80;"> Angle</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"82.8625"</span><span style="color: #80ffff;">/&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;/</span><span style="color: #0080ff;">TransformGroup</span><span style="color: #80ffff;">&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;/</span><span style="color: #0080ff;">LinearGradientBrush.RelativeTransform</span><span style="color: #80ffff;">&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;</span><span style="color: #0080ff;">GradientStop</span><span style="color: #ffff80;"> Color</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"#80FFFFFF"</span><span style="color: #ffff80;"> Offset</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"0"</span><span style="color: #80ffff;">/&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;</span><span style="color: #0080ff;">GradientStop</span><span style="color: #ffff80;"> Color</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"#808C8A8C"</span><span style="color: #ffff80;"> Offset</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"0.62345"</span><span style="color: #80ffff;">/&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;</span><span style="color: #0080ff;">GradientStop</span><span style="color: #ffff80;"> Color</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"#8019161A"</span><span style="color: #ffff80;"> Offset</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"1"</span><span style="color: #80ffff;">/&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;/</span><span style="color: #0080ff;">LinearGradientBrush</span><span style="color: #80ffff;">&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;</span><span style="color: #0080ff;">SolidColorBrush</span><span style="color: #ffff80;"> Color</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"Gainsboro"</span><span style="color: #80ffff;">/&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;</span><span style="color: #0080ff;">SolidColorBrush</span><span style="color: #ffff80;"> Color</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"#FFDD22"</span><span style="color: #80ffff;">/&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;/</span><span style="color: #0080ff;">sled</span><span style="color: #80ffff;">:</span><span style="color: #0080ff;">AlternateBrushConverterParameter.Brushes</span><span style="color: #80ffff;">&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;/</span><span style="color: #0080ff;">sled</span><span style="color: #80ffff;">:</span><span style="color: #0080ff;">AlternateBrushConverterParameter</span><span style="color: #80ffff;">&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;/</span><span style="color: #0080ff;">UserControl.Resources</span><span style="color: #80ffff;">&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;</span><span style="color: #0080ff;">StackPanel</span><span style="color: #ffff80;"> x</span><span style="color: #80ffff;">:</span><span style="color: #ffff80;">Name</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"LayoutRoot"</span><span style="color: #ffff80;"> Background</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"White"</span><span style="color: #80ffff;"> &gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;</span><span style="color: #0080ff;">TextBlock</span><span style="color: #ffff80;"> Text</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"Alternating brush converter"</span><span style="color: #80ffff;">/&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;</span><span style="color: #0080ff;">ItemsControl</span><span style="color: #ffff80;"> ItemsSource</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"ABCDEFGH"</span><span style="color: #80ffff;">&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;</span><span style="color: #0080ff;">ItemsControl.ItemTemplate</span><span style="color: #80ffff;">&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;</span><span style="color: #0080ff;">DataTemplate</span><span style="color: #80ffff;">&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;</span><span style="color: #0080ff;">Grid</span><span style="color: #ffff80;"> Background</span><span style="color: #80ffff;">="{</span><span style="color: #ff80c0;">Binding</span><span style="color: #8080ff;"> Path</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">''</span><span style="color: #80ffff;">,</span><span style="color: #8080ff;"> Converter</span><span style="color: #80ffff;">={</span><span style="color: #ff80c0;">StaticResource</span><span style="color: #8080ff;"> alternateConverter</span><span style="color: #80ffff;">},</span><span style="color: #8080ff;"> ConverterParameter</span><span style="color: #80ffff;">={</span><span style="color: #ff80c0;">StaticResource</span><span style="color: #8080ff;"> alternateParameter</span><span style="color: #80ffff;">}}</span><span style="color: #80ff80;">"</span><span style="color: #80ffff;">&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;</span><span style="color: #0080ff;">TextBlock</span><span style="color: #ffff80;"> Text</span><span style="color: #80ffff;">="{</span><span style="color: #ff80c0;">Binding</span><span style="color: #80ffff;">}</span><span style="color: #80ff80;">"</span><span style="color: #80ffff;"> /&gt;</span><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; </span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;/</span><span style="color: #0080ff;">Grid</span><span style="color: #80ffff;">&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;/</span><span style="color: #0080ff;">DataTemplate</span><span style="color: #80ffff;">&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;/</span><span style="color: #0080ff;">ItemsControl.ItemTemplate</span><span style="color: #80ffff;">&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;/</span><span style="color: #0080ff;">ItemsControl</span><span style="color: #80ffff;">&gt;</span></p>
<p style="margin: 0px;">&nbsp;</p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;</span><span style="color: #0080ff;">ItemsControl</span><span style="color: #ffff80;"> ItemsSource</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"ABCDEFGH"</span><span style="color: #ffff80;"> Margin</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">"0,40,0,0"</span><span style="color: #80ffff;">&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;</span><span style="color: #0080ff;">ItemsControl.ItemTemplate</span><span style="color: #80ffff;">&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;</span><span style="color: #0080ff;">DataTemplate</span><span style="color: #80ffff;">&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;</span><span style="color: #0080ff;">Grid</span><span style="color: #ffff80;"> Background</span><span style="color: #80ffff;">="{</span><span style="color: #ff80c0;">Binding</span><span style="color: #8080ff;"> Path</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">''</span><span style="color: #80ffff;">,</span><span style="color: #8080ff;"> Converter</span><span style="color: #80ffff;">={</span><span style="color: #ff80c0;">StaticResource</span><span style="color: #8080ff;"> alternateConverter</span><span style="color: #80ffff;">},</span><span style="color: #8080ff;"> ConverterParameter</span><span style="color: #80ffff;">=</span><span style="color: #80ff80;">'</span><span style="color: #cb97ff;">White</span><span style="color: #8080ff;"> Gray</span> #<span style="color: #cb97ff;">FFDD22</span><span style="color: #80ff80;">'</span><span style="color: #80ffff;">}</span><span style="color: #80ff80;">"</span><span style="color: #80ffff;">&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;</span><span style="color: #0080ff;">TextBlock</span><span style="color: #ffff80;"> Text</span><span style="color: #80ffff;">="{</span><span style="color: #ff80c0;">Binding</span><span style="color: #80ffff;">}</span><span style="color: #80ff80;">"</span><span style="color: #80ffff;"> /&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;/</span><span style="color: #0080ff;">Grid</span><span style="color: #80ffff;">&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;/</span><span style="color: #0080ff;">DataTemplate</span><span style="color: #80ffff;">&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;/</span><span style="color: #0080ff;">ItemsControl.ItemTemplate</span><span style="color: #80ffff;">&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;/</span><span style="color: #0080ff;">ItemsControl</span><span style="color: #80ffff;">&gt;</span></p>
<p style="margin: 0px;"><span style="color: #60ff60;">&nbsp;&nbsp;&nbsp; </span><span style="color: #80ffff;">&lt;/</span><span style="color: #0080ff;">StackPanel</span><span style="color: #80ffff;">&gt;</span></p>
<p style="margin: 0px;"><span style="color: #80ffff;">&lt;/</span><span style="color: #0080ff;">UserControl</span><span style="color: #80ffff;">&gt;</span></p>
</div>

	</body>
</html>